import request from '@/utils/request'

// 获取关注列表
export function getFollowList(params) {
  return request({
    url: '/followlist',
    method: 'get',
    params
  })
}

// 点赞文章
export function likeArticle(articleId) {
  return request({
    url: '/like/' + articleId,
    method: 'post'
  })
}

// 收藏文章
export function collectArticle(articleId) {
  return request({
    url: '/favorite/' + articleId,
    method: 'post'
  })
}

// 关注作者
export function followAuthor(authorId) {
  return request({
    url: '/follow/' + authorId,
    method: 'post'
  })
}
